/**
* 我订阅的牛人
* 链接：this.$router.push({path:'/subscriptions'})
*/

<template>
  <div class="situation x-bg subscriptions">
    <header-top :option="headerOption"></header-top>
    <Rockmen></Rockmen>
    <subscribe-cancel-modal></subscribe-cancel-modal>
  </div>
</template>

<script>
  import Constant from 'common/constant'
  import LocalDAO from 'common/localDAO'
  import HeaderTop from 'components/HeaderTop'
  import Rockmen from 'components/dynamic/subscriptions/Rockmen'
  import SubscribeCancelModal from 'components/modal/SubscribeCancelModal'
  export default {
    data () {
      return {
        headerOption: {
          title: '我订阅的牛人',
          leftBtn: Constant.leftBtn.BACK,
          operations: [Constant.operation.SHARE],
          page: Constant.storage.SHARE_SUBSCRIPTIONS
        }
      }
    },
    components: {
      HeaderTop,
      Rockmen,
      SubscribeCancelModal
    },
    created () {
      this.init();
    },
    methods: {
      //设置分享页数据
      init () {
        let sharePage = LocalDAO.getShareSubscriptions();
        sharePage.adDownload = {userCode: LocalDAO.getUserCode()};
        LocalDAO.setShareSubscriptions(sharePage);
      }
    }
  }
</script>
